import config from "@/config"
import http from "@/utils/request"

export default {
	setFile: {
		url: `${config.API_URL}/cms/common/file/upload/sign`,
		name: "文件上传",
		get: async function(params){
			return await http.get(this.url+params);
		}
	},
  searchCreator: {
    url: `${config.API_URL}/cms/common/creator/artwork/search`,
    name: "搜索创作者",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  checkToken: {
    url: `${config.API_URL}/cms/login/checkIn`,
    name: "检查token",
    get: async function() {
      return await http.get(this.url)
    }
  }
}
